<%@ Page Language="vb" AutoEventWireup="true" CodeBehind="TraditionalForm.aspx.vb" Inherits="QSWebApplicationVB.TraditionalForm" %>


<%@ Register Assembly="ValidationFramework" Namespace="ValidationFramework.Web" TagPrefix="cc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
  <title>Validation Demo</title>
</head>
<body>
  <form id="form1" runat="server">
    <div>
			&nbsp;<table>
        <tr>
          <td>
            First Name:</td>
          <td>
            <asp:TextBox ID="firstNameTextBox" runat="server" />
          </td>
          <td>
            <asp:PlaceHolder ID="firstNamePlaceHolder" runat="server"></asp:PlaceHolder>
          </td>
        </tr>
        <tr>
          <td>
            Last Name:</td>
          <td>
            <asp:TextBox ID="lastNameTextBox" runat="server" />
          </td>
          <td>
            <asp:PlaceHolder ID="lastNamePlaceHolder" runat="server"></asp:PlaceHolder>
          </td>
        </tr>
        <tr>
          <td>
            Age:</td>
          <td>
            <asp:TextBox ID="ageTextBox" runat="server" />
          </td>
          <td>
            <asp:PlaceHolder ID="agePlaceHolder" runat="server"></asp:PlaceHolder>
          </td>
        </tr>
        <tr>
          <td>
            Email:</td>
          <td>
            <asp:TextBox ID="emailAddressTextBox" runat="server" />
          </td>
          <td>
            <asp:PlaceHolder ID="emailPlaceHolder" runat="server"></asp:PlaceHolder>
          </td>
        </tr>
        <tr>
          <td>
            Card Type:</td>
          <td>
            <asp:DropDownList ID="cardTypeDropDownList" runat="server">
              <asp:ListItem Selected="true" Value="Invalid" Text="(Select)" />
              <asp:ListItem Value="Visa" Text="Visa" />
              <asp:ListItem Value="MasterCard" Text="Mastercard" />
              <asp:ListItem Value="Amex" Text="Amex" />
            </asp:DropDownList>
          </td>
          <td>
          </td>
        </tr>
        <tr>
          <td>
            Card Number:</td>
          <td>
            <asp:TextBox ID="creditCardNumberTextBox" runat="server" />&nbsp;
          </td>
          <td>
            <asp:PlaceHolder ID="cardNumberPlaceHolder" runat="server"></asp:PlaceHolder>
          </td>
        </tr>
        <tr>
          <td>
            Order Total Price:</td>
          <td>
            <asp:TextBox ID="orderTotalTextBox" runat="server" />
          </td>
          <td>
            <asp:PlaceHolder ID="orderTotalPlaceHolder" runat="server"></asp:PlaceHolder>
          </td>
        </tr>
        <tr>
          <td>
            Phone Number</td>
          <td>
            <asp:TextBox ID="phoneNumberTextBox" runat="server" /></td>
          <td>
            <asp:PlaceHolder ID="phoneNumberPlaceholder" runat="server"></asp:PlaceHolder>
          </td>
        </tr>
        <tr>
          <td>
            <asp:LinkButton ID="updateLinkButton" runat="server" Text="Update" OnClick="updateLinkButton_Click" /></td>
          <td>
            <asp:LinkButton ID="cancelLinkButton" runat="server" Text="Cancel" /></td>
          <td>
            &nbsp;</td>
        </tr>
      </table>
    </div>
    <cc1:PropertyValidatorGeneratorControl ID="validatorGenerator" runat="server" OnTargetObjectRequired="validatorGenerator_TargetObjectRequired"
      TypeToValidate="QSBusinessLayerVB.Person,QSBusinessLayerVB"  />
    <asp:ValidationSummary ID="ValidationSummary1" runat="server" />
		&nbsp;
  </form>
</body>
</html>
